package com.example.designPatten.decoracor.flavour;


import com.example.designPatten.decoracor.Beverage;
import com.example.designPatten.decoracor.CondimentDecorator;

/**
* @Title:   []
* @Description: 
* @Date : 2016年4月22日上午10:10:36
* @Company: SI-TECH
* @author : LIJXD
* @version : 1.0
* @modify history
*  <p>修改日期    修改人   修改目的<p> 	
*/
public class Soy extends CondimentDecorator {

	Beverage beverate;
	
	public Soy(Beverage beverate) {
		this.beverate = beverate;
	}


	@Override
	public String getDescription() {
		// TODO Auto-generated method stub
		return beverate.getDescription()+" , Soy";
	}

	 
	@Override
	public double cost() {
		// TODO Auto-generated method stub
		return 0.15+ beverate.cost();
	}

}
